<template>
  <div id="app">
    <!-- <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> |
      <router-link to="/menu">Menu</router-link> |
    </nav>-->
    <router-view/> 
  </div>
</template>
<script>
export default {
  
methods: {
      bodyScale() {
        var devicewidth = document.documentElement.clientWidth; //获取当前分辨率下的可视区域宽度
        var scale = devicewidth / 1920; // 除以设计稿的尺寸
        document.body.style.zoom = scale; //放大缩小相应倍数
      }
    },
    created() {
      document.body.style.background = '#E9EDF0'
      document.body.className = getLang()
      document.body.style.height = window.innerHeight + 'px'
      this.bodyScale() // 分辨率适配
    },
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}

</style>
